package cn.edu.hit.kg;

import jdk.nashorn.api.scripting.JSObject;

public interface IScriptContext {
    String LASTEST = "lastest";
    void registService(String name, String version, JSObject serviceObject);
    void registBinding(String name, String callName);
    JSObject getService(String name, String version);
    JSObject getService(String name);
    JSObject getServiceByBinding(String callName);
    boolean containsBinding(String callName);
    Object call(JSObject jsObject, Object... args);
    Object getConstValue(String name);
}
